/*
 * @Author: hongbin
 * @Date: 2022-01-03 18:39:03
 * @LastEditors: hongbin
 * @LastEditTime: 2022-01-06 13:28:09
 * @Description: 返回 地图json 路径
 */

// // @ts-ignore
// import { provinces as p } from "china-map-json-h";
// console.log(p);

//各省份的地图json文件
export const provinces: { [key: string]: string } = {
  上海市: "china-map-json-h/mapjson/data-1482909900836-H1BC_1WHg.json",
  河北省: "china-map-json-h/mapjson/data-1482909799572-Hkgu_yWSg.json",
  山西省: "china-map-json-h/mapjson/data-1482909909703-SyCA_JbSg.json",
  内蒙古自治区: "china-map-json-h/mapjson/data-1482909841923-rkqqdyZSe.json",
  辽宁省: "china-map-json-h/mapjson/data-1482909836074-rJV9O1-Hg.json",
  吉林省: "china-map-json-h/mapjson/data-1482909832739-rJ-cdy-Hx.json",
  黑龙江省: "china-map-json-h/mapjson/data-1482909803892-Hy4__J-Sx.json",
  江苏省: "china-map-json-h/mapjson/data-1482909823260-HkDtOJZBx.json",
  浙江省: "china-map-json-h/mapjson/data-1482909960637-rkZMYkZBx.json",
  安徽省: "china-map-json-h/mapjson/data-1482909768458-HJlU_yWBe.json",
  福建省: "china-map-json-h/mapjson/data-1478782908884-B1H6yezWe.json",
  江西省: "china-map-json-h/mapjson/data-1482909827542-r12YOJWHe.json",
  山东省: "china-map-json-h/mapjson/data-1482909892121-BJ3auk-Se.json",
  河南省: "china-map-json-h/mapjson/data-1482909807135-SJPudkWre.json",
  湖北省: "china-map-json-h/mapjson/data-1482909813213-Hy6u_kbrl.json",
  湖南省: "china-map-json-h/mapjson/data-1482909818685-H17FOkZSl.json",
  广东省: "china-map-json-h/mapjson/data-1482909784051-BJgwuy-Sl.json",
  广西壮族自治区: "china-map-json-h/mapjson/data-1482909787648-SyEPuJbSg.json",
  海南省: "china-map-json-h/mapjson/data-1482909796480-H12P_J-Bg.json",
  四川省: "china-map-json-h/mapjson/data-1482909931094-H17eKk-rg.json",
  贵州省: "china-map-json-h/mapjson/data-1482909791334-Bkwvd1bBe.json",
  云南省: "china-map-json-h/mapjson/data-1482909957601-HkA-FyWSx.json",
  西藏自治区: "china-map-json-h/mapjson/data-1482927407942-SkOV6Qbrl.json",
  陕西省: "china-map-json-h/mapjson/data-1482909918961-BJw1FyZHg.json",
  甘肃省: "china-map-json-h/mapjson/data-1482909780863-r1aIdyWHl.json",
  青海省: "china-map-json-h/mapjson/data-1482909853618-B1IiOyZSl.json",
  宁夏回族自治区: "china-map-json-h/mapjson/data-1482909848690-HJWiuy-Bg.json",
  新疆维吾尔自治区:
    "china-map-json-h/mapjson/data-1482909952731-B1YZKkbBx.json",
  北京市: "china-map-json-h/mapjson/data-1482818963027-Hko9SKJrg.json",
  天津市: "china-map-json-h/mapjson/data-1482909944620-r1-WKyWHg.json",
  重庆市: "china-map-json-h/mapjson/data-1482909775470-HJDIdk-Se.json",
  香港特别行政区: "china-map-json-h/mapjson/data-1461584707906-r1hSmtsx.json",
  澳门特别行政区: "china-map-json-h/mapjson/data-1482909771696-ByVIdJWBx.json",
  台湾省: "china-map-json-h/mapjson/taiwan.json",
};

export const getGeo = (city: string) => {
  const path = provinces[city];
  console.log(path);

  return require(path);
};
// export const getGeo = (city: string) =>
//   require("china-map-json-h/mapjson/data-1461584707906-r1hSmtsx.json");
